﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Xml;
using System.Runtime.InteropServices;

namespace ReadXml
{
    public class KinectData
    {
        public String frameNum;
        public String playerID;
        public String X;
        public String Y;
        public String Z;
    }
    class Zmain
    {
        /*****  设置控制台窗体在屏幕中的位置 *****/
        const int SWP_NOSIZE = 0x0001;
        [DllImport("kernel32.dll", ExactSpelling = true)]
        private static extern IntPtr GetConsoleWindow();

        private static IntPtr MyConsole = GetConsoleWindow();

        [DllImport("user32.dll", EntryPoint = "SetWindowPos")]
        public static extern IntPtr SetWindowPos(IntPtr hWnd, int hWndInsertAfter, int x, int Y, int cx, int cy, int wFlags);
        static void Main(string[] args)
        {
            /*****  设置控制台窗体在屏幕中的位置 *****/
            int xpos = 0;
            int ypos = 0;
            SetWindowPos(MyConsole, 0, xpos, ypos, 0, 0, SWP_NOSIZE);
            Console.SetWindowSize(270, 85); 
            /*****  获取特征矩阵 *****/
            (new RecogClass()).recogClass();
        }
    }
}
